home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / preferences.775 < prev    next >
Text File  |  1992-02-06  |  3KB  |  70 lines

  1. {\rtf0\ansi{\fonttbl\f1\fnil Times-Roman;\f3\fmodern Ohlfs;\f2\fmodern Courier;\f0\fswiss Helvetica;}
  2. \paperw13040
  3. \paperh10800
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\b0\i0\ul0\fs28 mouse scaling\
  8. \
  9. Q:  
  10. \fc0 How can I get my mouse pointer to stop jumping around, and to glide smoothly across the screen? \
  11. \
  12. A: Type the following command into a shell window:\
  13. \
  14.     % 
  15. \f3\fs22 dwrite NeXT1 MouseScaling "
  16. \f2\i\fs24 string
  17. \f3\i0\fs22 "\
  18.     
  19. \f1\fs28 \
  20. Where
  21. \f3\fs22  "
  22. \f2\i\fs24 string
  23. \f3\i0\fs22 "
  24. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f1\fs28\fc0  
  25. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 contains
  26. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc0  a single value indicating the number of integer pairs to follow, followed by the actual pairs. 
  27. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0  The integer pairs are (speed, acceleration) pairs.  These integer pairs make the mouse movement on the screen dependent both on the distance the mouse was moved on the pad, and its acceleration and speed.   
  28. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc0 When you change the mouse speed through 
  29. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 the P
  30. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc0 references
  31. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0  application
  32. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc0 , it creates one of these. Here's 
  33. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 the format of a
  34. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc0  MouseScaling argument:\
  35. \
  36.  
  37. \f3\fs22     % dwrite NeXT1 MouseScaling "N x1 a1 x2 a2 x3 a3 x4 a4 ... xN aN"\
  38.  
  39. \f1\fs28 \
  40. To give the mouse a smoother motion across the screen, you must make the mouse movement linear (uniform, but slow).  This 
  41. \b dwrite
  42. \b0  will do the trick:\
  43. \
  44.  
  45. \f3\fs22     % dwrite NeXT1 MouseScaling "1 1 1"\
  46.  
  47. \f1\fs28 \
  48. This means that if you move the mouse 
  49. \f3\fs22 x
  50. \f1\fs28  amount on the pad, it moves it by 
  51. \f3\fs22 kx
  52. \f1\fs28  pixels on the screen regardless of how long it took. (
  53. \f3\fs22 k
  54. \f1\fs28  is the constant which translates the mouse pad coordinate system to the screen coordinate system.)\
  55. \
  56.  
  57. \i Warning
  58. \i0 : we cannot guarantee the support of 
  59. \b dwrite
  60. \b0 s in future releases, so do not put this in your application or rely on it in any way.
  61. \f0 \
  62.  
  63. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fc0 \
  64. QA775\
  65. \
  66. Not-tested for 1.0\
  67. Valid for 2.0\
  68. \
  69.  
  70.